package com.vdong.trade.order.entity.mo;

import com.vdong.trade.order.common.foundation.FoundationMO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.RequiredArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @description: 分销订单快照表
 * @author: Mr.WangGang
 * @create: 2018-11-30 上午 11:37
 **/
@Data
@Entity
@Builder
@AllArgsConstructor
@RequiredArgsConstructor
@Table(name = "order_disb_snapshot")
public class OrderDisbSnapshotMO  {

    @Id
    @Column(name = "id")
    private Long id;

    @Column(name = "order_id")
    private Long orderId;

    @Column(name = "pusher_key")
    private Long pusherKey;

    @Column(name = "merchant_key")
    private Long merchantKey;

    @Column(name = "company_key")
    private Long companyKey;

    @Column(name = "product_distribution_amount")
    private BigDecimal productDistributionAmount;

    @Column(name = "platform_extraction_rate")
    private BigDecimal platformExtractionRate;

    @Column(name = "platform_anticipated_income_amount")
    private BigDecimal platformAnticipatedIncomeAmount;

    @Column(name = "pusher_commission_rate")
    private BigDecimal pusherCommissionRate;

    @Column(name = "pusher_anticipated_income_amount")
    private BigDecimal pusherAnticipatedIncomeAmount;

    @Column(name="create_time")
    private Date createTime;

    @Column(name="update_time")
    private Date updateTime;
}
